function getDepartmentList(params) {
    return $axios({
        url: '/department/page',
        method: 'get',
        params
    })
}

function getDepartmentIdAndNameList() {
    return $axios({
        url: '/department/id',
        method: 'get',
    })
}

// 新增---添加部门
function addDepartment(params) {
    return $axios({
        url: '/department',
        method: 'post',
        data: {...params}
    })
}

// 修改---添加部门
function editDepartment(params) {
    return $axios({
        url: '/department',
        method: 'put',
        data: {...params}
    })
}

// 修改页面反查详情接口
function queryDepartmentById(id) {
    return $axios({
        url: `/department/${id}`,
        method: 'get'
    })
}
